package com.ives.launcher.model;

import android.graphics.Bitmap;


/**
 * 每种Item的基本信息，（APP，Weight,ShortCurt，Floder）
 */
public class ItemInfo  implements Cloneable{

	static final int NO_ID = -1;
	
	/**各种类型的描述**/
	public static final int Type_App = 1;
	public static final int Type_Floder = 2;
	public static final int Type_Widget = 3;
	
	

	/**
	 * The id in the settings database for this item
	 */
	public long id = NO_ID;

	/**
	 * item的类型，包括文件夹，widget，快捷方式等等
	 */
	public int itemType;
	/**
	 * title文件夹名字
	 */
	public CharSequence title;
	/**
	 * 
	 */
	public long container = NO_ID;

	/**
	 * Iindicates the screen in which the shortcut appears.
	 */
	public int screen = -1;

	/**
	 * Indicates the X position of the associated cell.
	 */
	public int cellX = -1;

	/**
	 * Indicates the Y position of the associated cell.
	 */
	public int cellY = -1;

	/**
	 * Indicates the X cell span.
	 */
	public int spanX = 1;

	/**
	 * Indicates the Y cell span.
	 */
	public int spanY = 1;
	/**
	 * 图标
	 */
	public Bitmap icon;

	ItemInfo() {
	}

	public ItemInfo(ItemInfo info) {
		id = info.id;
		cellX = info.cellX;
		cellY = info.cellY;
		spanX = info.spanX;
		spanY = info.spanY;
		screen = info.screen;
		itemType = info.itemType;
		container = info.container;
		icon = info.icon;
		title = info.title;
	}

	@Override
	public Object clone() throws CloneNotSupportedException {
		return super.clone();
	}
	
	
}
